#!/bin/sh

if [ -n "`pidof motion`" ]; then 
    killall motion 2>/dev/null
fi

/opt/bin/motion
